﻿<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true"
    CodeFile="Category.aspx.cs" Inherits="V_FactoryManagement_Building" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="titlePlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="menuPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="contentPlaceHolder" runat="Server">
    <div class="divcontent">
        <table width="100%">
            <tr>
                <td>
                    <div style="padding-bottom: 7px;">
                        <div class="divfirst1" style="width: 129px">
                            <%=Utilitys.Dictionary["Titlevn"] %>
                            <span style="color: Red;">(*)</span>:
                        </div>
                        <div class="divlast1">
                            <asp:TextBox ID="txtName" runat="server" Width="145"></asp:TextBox>
                            <asp:RequiredFieldValidator runat="server" ID="name" ControlToValidate="txtName"
                                Display="None" ErrorMessage="<b>Tiêu đề tiếng việt</b><br />Không thể rỗng."></asp:RequiredFieldValidator>
                            <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender1"
                                TargetControlID="name" HighlightCssClass="validatorCalloutHighlight" />
                        </div>
                    </div>
                    <div style="padding-bottom: 7px; display:none;">
                        <div class="divfirst1" style="width: 129px">
                            <%=Utilitys.Dictionary["Titleen"] %>
                            <span style="color: Red;">(*)</span>:
                        </div>
                        <div class="divlast1">
                            <asp:TextBox ID="txtnameen" runat="server" Width="145"></asp:TextBox>
                            <%--<asp:RequiredFieldValidator runat="server" ID="en" ControlToValidate="txtnameen"
                                Display="None" ErrorMessage="<b>Tiêu đề tiếng anh</b><br />Không thể rỗng."></asp:RequiredFieldValidator>
                            <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender2"
                                TargetControlID="en" HighlightCssClass="validatorCalloutHighlight" />--%>
                        </div>
                    </div>
                    <div style="padding-bottom: 7px;">
                        <div class="divfirst1" style="width: 129px">
                            <%=Utilitys.Dictionary["Code"] %>
                            <span style="color: Red;">(*)</span>:
                        </div>
                        <div class="divlast1">
                            <asp:TextBox ID="txtCode" runat="server" Width="145"></asp:TextBox><asp:RequiredFieldValidator
                                runat="server" ID="code" ControlToValidate="txtCode" Display="None" ErrorMessage="<b>Mã danh mục</b><br />Không thể rỗng."></asp:RequiredFieldValidator>
                            <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender3"
                                TargetControlID="code" HighlightCssClass="validatorCalloutHighlight" />
                        </div>
                    </div>
                    <div style="padding-bottom: 7px; display: none">
                        <div class="divfirst1" style="width: 129px">
                            <%=Utilitys.Dictionary["UserName"] %>
                            <span style="color: Red;">(*)</span>:
                        </div>
                        <div class="divlast1">
                            <asp:DropDownList ID="ddluserid" runat="server" Width="200px">
                            </asp:DropDownList>
                        </div>
                    </div>
                    <div style="padding-bottom: 7px;">
                        <div class="divfirst1" style="width: 129px">
                            <%=Utilitys.Dictionary["Order"] %>
                            :
                        </div>
                        <div class="divlast1">
                            <asp:TextBox ID="txtOrder" Width="80" runat="server"></asp:TextBox><asp:RegularExpressionValidator
                                ControlToValidate="txtOrder" ValidationExpression="^[0-9,.]+$" ID="redOrder"
                                runat="server" ErrorMessage="*">*</asp:RegularExpressionValidator></div>
                    </div>
                    <div style="padding-bottom: 7px;">
                        <div class="divfirst1" style="width: 129px">
                            <%=Utilitys.Dictionary["Desc"] %>
                            :
                        </div>
                        <div class="divlast1">
                            <asp:TextBox ID="txtDescription" Width="400" TextMode="MultiLine" Rows="2" runat="server"></asp:TextBox></div>
                    </div>
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <div>
                        <div class="divfirst1" style="width: 129px">
                            <label>
                                <%=Utilitys.Dictionary["Summary"]%>
                                :</label></div>
                        <div class="divlast1">
                            <FCKeditorV2:FCKeditor ID="fck_SummaryVn" runat="server" BasePath="~/Javascripts/FCKEditor/"
                                ToolbarCanCollapse="false" Width="600px" Height="150px" ToolbarSet="Basic">
                            </FCKeditorV2:FCKeditor>
                        </div>
                    </div>
                </td>
            </tr>
        </table>
        <div style="padding: 7px;">
            <asp:Literal ID="lb_error" runat="server"></asp:Literal>
        </div>
        <div class="divbutton" style="margin-left: 137px">
            <asp:Button runat="server" ID="btnSave" OnClick="btnSave_OnClick" />&nbsp;&nbsp;<a
                href="javascript:history.go(-1)"><asp:Button ID="btnBack" runat="server" /></a>
        </div>
        <div class="divbutton" style="color: Red;" align="center">
            <asp:Literal runat="server" ID="ltrmessage" />
        </div>
    </div>

    <script type="text/javascript">
var j = document.getElementById("<%=btnSave.ClientID%>");
j.value = "<%=Utilitys.Dictionary["Save"]%>";
var k = document.getElementById("<%=btnBack.ClientID%>");
k.value = "<%=Utilitys.Dictionary["Back"]%>";
    </script>


</asp:Content>
